package com.zhongfl.crm.lixiao.mapper;

import com.zhongfl.crm.model.boss.WorkOrderSettleConfirm;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface WorkOrderSettleConfirmMapper {
    int deleteByPrimaryKey(Integer id);


    int insertSelective(WorkOrderSettleConfirm record);

    WorkOrderSettleConfirm selectByPrimaryKey(Integer id);
    List<WorkOrderSettleConfirm> selectBySettleNo(String settleNo);

    List<WorkOrderSettleConfirm> selectBySettleNos(@Param("settleNos") List<String> settleNos);

    int updateByPrimaryKeySelective(WorkOrderSettleConfirm record);

    /**
     * 确认操作
     */
    int confirm(WorkOrderSettleConfirm confirmInfo);

    /**
     * 超过24小时,自动确认
     * @param workOrderSettleConfirm
     */
    void clearConfirm(WorkOrderSettleConfirm workOrderSettleConfirm);

    /**
     * 通过结算单号和员工编码查询工单结算确认信息
     * @param settleNo 结算单号
     * @param staffCode 员工编号
     * @return 工单结算确认信息
     */
    WorkOrderSettleConfirm selectBySettleNoAndStaffCode(@Param("settleNo") String settleNo, @Param("staffCode") String staffCode);


    /**
     * 根据结算单号删除结算确认信息
     * @param settleNo
     * @return
     */
    int deleteBySettleNo(String settleNo);
}